{{include file="header.tpl"}}
<!--content-->
{{include file="front/borrow/nav.html"}}
<script type="text/javascript" src="res/js/geo_selection.js"></script>
<script type="text/javascript">
    $(function() {
        geoSelection.firstGeoLevel = 1;
        geoSelection.lastGeolevel = 5;
        geoSelection.geoInputName = "geo_code";
        geoSelection.geoLayerId = "geo_selection";
        //geoSelection.initSelected(initGeoCode);
        geoSelection.initGeoSelection('{{$userItem.info.GEO_CODE}}');


        $('#BIRTHDAY').calendar();
    });
</script>

<script type="text/javascript" src="res/js/formvalidator/formValidator-4.1.3.js"></script>
<script type="text/javascript" src="res/js/formvalidator/formValidatorRegex.js" ></script>
<script type="text/javascript">
    $(document).ready(function() {
        $.formValidator.initConfig({theme: "126", formID: "valform", mode: 'AutoTip', onError: function(msg) {
                alert(msg)
            }, inIframe: true});
        $("#IDCARD").formValidator({onShow: "请输入身份证号", onFocus: "身份证号必须18位"}).inputValidator({min: 18, max:18, onError: "请输入18位身份证号"}).regexValidator({regExp: "idcard", dataType: "enum", onError: "身份证的格式不正确"});
        $("#EMAIL").formValidator({onShow: "请输入邮箱",onFocus: "请输入邮箱"}).regexValidator({regExp: "email", dataType: "enum", onError: "邮箱的格式不正确"});
        $("#RELATIVE_TEL").formValidator({onShow: "请输入电话",onFocus: "请输入电话"}).regexValidator({regExp: "num", dataType: "enum", onError: "电话号码的格式不正确"});
        $("#QQ").formValidator({onShow: "请输入QQ",onFocus: "请输入QQ"}).regexValidator({regExp: "num", dataType: "enum", onError: "QQ的格式不正确"});
        $("#BIRTHDAY").formValidator({onShow: "请输入出生日期",onFocus: "请输入出生日期"}).regexValidator({regExp: "date", dataType: "enum", onError: "出生日期的格式不正确"});
        $("#ADDRESS").formValidator({onShow: "请输入真实地址", onfocus: "请输入真实地址", onCorrect: "输入正确"}).inputValidator({min: 1, onError: "请填写详细地址!"});
        $("#REALNAME").formValidator({onShow: "请输入真实姓名", onfocus: "请输入真实姓名", onCorrect: "输入正确"}).inputValidator({min: 2, onError: "请输入真实姓名"}).regexValidator({regExp: "chinese", dataType: "enum", onError: "请输入真实姓名"});
        $("#RELATIVE_NAME").formValidator({onShow: "请输入真实姓名", onfocus: "请输入真实姓名", onCorrect: "输入正确"}).inputValidator({min: 2, onError: "请输入真实姓名"}).regexValidator({regExp: "chinese", dataType: "enum", onError: "请输入真实姓名"});
        $("#RELATIVE_SHIP").formValidator({onShow: "请输入亲属关系", onfocus: "请输入亲属关系", onCorrect: "输入正确"}).inputValidator({min: 2, onError: "请输入亲属关系"}).regexValidator({regExp: "chinese", dataType: "enum", onError: "请输入亲属关系"});
        $("#geo_level2").formValidator({tipID: "geo_codeTip", onShow: "至少1个长度", onCorrect: ""}).inputValidator({min: 1, onError: "请选择所在市!"}).defaultPassed();
        $("#geo_level3").formValidator({tipID: "geo_codeTip", onShow: "至少1个长度", onCorrect: ""}).inputValidator({min: 1, onError: "请选择所在地区!"}).defaultPassed();
        $("#geo_level4").formValidator({tipID: "geo_codeTip", onShow: "至少1个长度", onCorrect: ""}).inputValidator({min: 1, onError: "请选择所在乡镇!"}).defaultPassed();
        $("#geo_level5").formValidator({tipID: "geo_codeTip", onShow: "至少1个长度", onCorrect: ""}).inputValidator({min: 1, onError: "请选择所在村级!"}).defaultPassed();
        $("#WORK_JOB").formValidator({onShow: "请输入职位", onfocus: "请输入职位", onCorrect: "输入正确"}).inputValidator({min: 2, onError: "请输入职位"});
        $("#WORK_TYPE").formValidator({onShow: "至少1个长度",onfocus: "请选择公司行业", onCorrect: ""}).inputValidator({min: 1, onError: "请公司行业!"});
        $("#WORK_SIZE").formValidator({onShow: "至少1个长度",onfocus: "请选择公司规模", onCorrect: ""}).inputValidator({min: 1, onError: "请选择公司规模!"});
        $("#WORK_STATE").formValidator({onShow: "至少1个长度",onfocus: "请选择职业状况", onCorrect: ""}).inputValidator({min: 1, onError: "请选择职业状况!"});
        $("#WORK_MONEY").formValidator({onShow: "至少1个长度",onfocus: "请选择月收入", onCorrect: ""}).inputValidator({min: 1, onError: "请选择月收入!"});
        $("#EDUCATION").formValidator({onShow: "至少1个长度",onfocus: "请选择学历", onCorrect: ""}).inputValidator({min: 1, onError: "请选择学历!"});
        $("#CAR_ID").formValidator({onShow: "请输入车牌", onfocus: "请输入车牌", onCorrect: "输入正确"}).inputValidator({min: 2, onError: "请输入车牌"});
        $("#WORK_NAME").formValidator({onShow: "请输入单位名称", onfocus: "请输入单位名称", onCorrect: "输入正确"}).inputValidator({min: 2, onError: "请输入单位名称"});
       
});
    function chkgeo() {
        if ($("#geo_level2").find("option").length <= 1) {
            $("#geo_level2").unFormValidator(true);
        } else {
            $("#geo_level2").unFormValidator(false);
        }
        if ($("#geo_level3").find("option").length <= 1) {
            $("#geo_level3").unFormValidator(true);
        } else {
            $("#geo_level3").unFormValidator(false);
        }
        if ($("#geo_level4").find("option").length <= 1) {
            $("#geo_level4").unFormValidator(true);
        } else {
            $("#geo_level4").unFormValidator(false);
        }
        if ($("#geo_level5").find("option").length <= 1) {
            $("#geo_level5").unFormValidator(true);
        } else {
            $("#geo_level5").unFormValidator(false);
        }
    };
</script>
<script type="text/javascript" src="res/js/lhgcalendar/lhgcalendar.min.js"></script>
<div class="borrow_con w1002 Mar14">
    <div class="Fl borrow">
        <h2>请填写验证信息</h2>
        {{if $userItem.info.STATE != 2 }}
        <div>
            <form id="valform" name="valform" method="post" action="index.php?ctl=borrow&act=step&step=3" onsubmit="chkgeo();">
                <table width="90%" border="0" cellpadding="0" cellspacing="0" class="tablecss1">
                    <tr>
                        <td width="100px">手机号码：</td>
                        <td><input type="text" name="USRENAME" value="{{$userItem.USERNAME}}" readonly="readonly" style="padding:4px;"></td>
                    </tr>
                    <tr>
                        <td>用户类型：</td>
                        <td><input type="text" name="TYPE_NAME" value="{{$userItem.userType.TYPE_NAME}}" readonly="readonly" style="padding:4px;"></td>
                    </tr>
                    <tr>
                        <td>真实姓名：</td>
                        <td><input type="text" name="REALNAME" id="REALNAME" value="{{$userItem.info.REALNAME}}">
                        </td>
                    </tr>
                    <tr>
                        <td>身份证号码：</td>
                        <td><input id="IDCARD" type="text" name="IDCARD" value="{{$userItem.info.IDCARD}}"></td>
                    </tr>
                    <tr>

                        <td>所在地：</td>
                        <td id="geo_selection">
                            <div style="float:left;">   
                                    <select name="geo_level1" id="geo_level1" style="width:80px;"></select>
                                    <select name="geo_level2" id="geo_level2" style="width:80px;"></select>
                                    <select name="geo_level3" id="geo_level3" style="width:80px;"></select>
                                    <select name="geo_level4" id="geo_level4" style="width:80px;"></select>
                                    <select name="geo_level5" id="geo_level5" style="width:80px;"></select>
                             </div>
                             <div id="geo_codeTip" style="float:left;"></div>
                            <input type="hidden" name="geo_code" id="geo_code" value="0" />
                        </td>
                    </tr>
                    <tr>

                        <td>详细地址：</td>
                        <td><input name="ADDRESS" id="ADDRESS" type="text" value="{{$userItem.info.ADDRESS}}" maxlength="50" style="width: 280px;"> 请填写门牌等信息，如：老街33号</td>
                    </tr>
                    <tr>

                        <td>性别：</td>
                        <td><input type="radio" name="SEX" value="1" {{if $userItem.info.SEX==1 || !$userItem.info.SEX}}checked="checked"{{/if}}>男&nbsp;&nbsp;
                                   <input type="radio" name="SEX" value="2" {{if $userItem.info.SEX==2}}checked="checked"{{/if}}>女 &nbsp;&nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>邮箱：</td>
                        <td><input type="text" id="EMAIL" name="EMAIL" value="{{$userItem.info.EMAIL}}"></td>
                    </tr>
                    <tr>
                        <td>QQ：</td>
                        <td><input type="text" id="QQ" name="QQ" value="{{$userItem.info.QQ}}" maxlength="16"></td>
                    </tr>
                    <tr>
                        <td>学历：</td>
                        <td><select name="EDUCATION" id="EDUCATION">
                                <option value="">=请选择=</option>
                                <option value="高中或以下" {{if $userItem.info.EDUCATION=='高中或以下'}}selected="selected"{{/if}}>高中或以下</option>
                                <option value="大专" {{if $userItem.info.EDUCATION=='大专'}}selected="selected"{{/if}}>大专</option>
                                <option value="本科" {{if $userItem.info.EDUCATION=='本科'}}selected="selected"{{/if}}>本科</option>
                                <option value="研究生或以上" {{if $userItem.info.EDUCATION=='研究生或以上'}}selected="selected"{{/if}}>研究生或以上</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>出生日期：</td>
                        <td>
                            <input class="runcode" name="BIRTHDAY" id="BIRTHDAY" value="{{$userItem.info.BIRTHDAY}}" />
                        </td>
                    </tr>
                    <tr>
                        <td>婚姻状况：</td>
                        <td>
                            <input type="radio" class="f-radio" value="已婚" name="MARRY" {{if $userItem.info.MARRY=='已婚'}}checked="checked"{{/if}}> 已婚
                                   &nbsp;&nbsp;&nbsp;&nbsp;
                                   <input type="radio" class="f-radio" value="未婚" name="MARRY" {{if $userItem.info.MARRY=='未婚' || !$userItem.info.MARRY}}checked="checked"{{/if}}> 未婚
                                   &nbsp;&nbsp;&nbsp;&nbsp;
                                   <input type="radio" class="f-radio" value="离异" name="MARRY" {{if $userItem.info.MARRY=='离异'}}checked="checked"{{/if}}> 离异
                                   &nbsp;&nbsp;&nbsp;&nbsp;
                                   <input type="radio" class="f-radio" value="丧偶" name="MARRY" {{if $userItem.info.MARRY=='丧偶'}}checked="checked"{{/if}}> 丧偶		
                        </td>
                    </tr>
                    <tr>
                        <td>有无子女：</td>
                        <td>
                            <input type="radio" class="f-radio" value="2" name="HASCHILD" {{if $userItem.info.HASCHILD=='2'}}checked="checked"{{/if}}> 有
                                   &nbsp;&nbsp;&nbsp;&nbsp;
                                   <input type="radio" class="f-radio" value="1" name="HASCHILD" {{if $userItem.info.HASCHILD=='1'  || !$userItem.info.HASCHILD}}checked="checked"{{/if}}> 无
                        </td>
                    </tr>
                    <tr>
                        <td>亲属：</td>
                        <td>
                            直系亲属-姓名:<input type="text" id="RELATIVE_NAME" name="RELATIVE_NAME" style="width:50px;" value="{{$userItem.info.RELATIVE.NAME}}"><br/>
                            直系亲属-关系:<input type="text" id="RELATIVE_SHIP" name="RELATIVE_SHIP" style="width:50px;" value="{{$userItem.info.RELATIVE.SHIP}}"><br/>
                            直系亲属-电话:<input type="text" id="RELATIVE_TEL" name="RELATIVE_TEL" value="{{$userItem.info.RELATIVE.TEL}}">
                        </td>
                    </tr>
                    <tr>
                        <td>单位名称：</td>
                        <td>
                            <input type="text" id="WORK_NAME" name="WORK_NAME" value="{{$userItem.info.WORK.NAME}}">
                        </td>
                    </tr>
                    <tr>
                        <td>公司行业：</td>
                        <td>
                            <select id="WORK_TYPE" name="WORK_TYPE">
                                <option value="0">请选择</option>
                                <option value="1" {{if $userItem.info.WORK.TYPE=='1'}}selected="selected"{{/if}}>制造业</option>
                                <option value="2" {{if $userItem.info.WORK.TYPE=='2'}}selected="selected"{{/if}}>IT</option>
                                <option value="3" {{if $userItem.info.WORK.TYPE=='3'}}selected="selected"{{/if}}>政府机关</option>
                                <option value="4" {{if $userItem.info.WORK.TYPE=='4'}}selected="selected"{{/if}}>媒体/广告</option>
                                <option value="5" {{if $userItem.info.WORK.TYPE=='5'}}selected="selected"{{/if}}>零售/批发</option>
                                <option value="6" {{if $userItem.info.WORK.TYPE=='6'}}selected="selected"{{/if}}>教育/培训</option>
                                <option value="7" {{if $userItem.info.WORK.TYPE=='7'}}selected="selected"{{/if}}>公共事业</option>
                                <option value="8" {{if $userItem.info.WORK.TYPE=='8'}}selected="selected"{{/if}}>交通运输业</option>
                                <option value="9" {{if $userItem.info.WORK.TYPE=='9'}}selected="selected"{{/if}}>房地产业</option>
                                <option value="10" {{if $userItem.info.WORK.TYPE=='10'}}selected="selected"{{/if}}>能源业</option>
                                <option value="11" {{if $userItem.info.WORK.TYPE=='11'}}selected="selected"{{/if}}>金融/法律</option>
                                <option value="12" {{if $userItem.info.WORK.TYPE=='12'}}selected="selected"{{/if}}>餐饮/旅馆业</option>
                                <option value="13" {{if $userItem.info.WORK.TYPE=='14'}}selected="selected"{{/if}}>医疗/卫生/保健</option>
                                <option value="14" {{if $userItem.info.WORK.TYPE=='14'}}selected="selected"{{/if}}>建筑工程</option>
                                <option value="15" {{if $userItem.info.WORK.TYPE=='15'}}selected="selected"{{/if}}>农业</option>
                                <option value="16" {{if $userItem.info.WORK.TYPE=='16'}}selected="selected"{{/if}}>娱乐服务业</option>
                                <option value="17" {{if $userItem.info.WORK.TYPE=='17'}}selected="selected"{{/if}}>体育/艺术</option>
                                <option value="18" {{if $userItem.info.WORK.TYPE=='18'}}selected="selected"{{/if}}>公益组织</option>
                                <option value="19" {{if $userItem.info.WORK.TYPE=='19'}}selected="selected"{{/if}}>其它</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>公司规模：</td>
                        <td>
                            <select id="WORK_SIZE" name="WORK_SIZE">
                                <option value="">请选择</option>
                                <option value="1" {{if $userItem.info.WORK.SIZE=='1'}}selected="selected"{{/if}}>10人以下</option>
                                <option value="2" {{if $userItem.info.WORK.SIZE=='2'}}selected="selected"{{/if}}>10-100人</option>
                                <option value="3" {{if $userItem.info.WORK.SIZE=='3'}}selected="selected"{{/if}}>100-500人</option>
                                <option value="4" {{if $userItem.info.WORK.SIZE=='4'}}selected="selected"{{/if}}>500人以上</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>职业状况：</td>
                        <td>
                            <select id="WORK_STATE" name="WORK_STATE">
                                <option value="">请选择</option>
                                <option value="1"  {{if $userItem.info.WORK.STATE=='1'}}selected="selected"{{/if}}>工薪阶层</option>
                                <option value="2"  {{if $userItem.info.WORK.STATE=='2'}}selected="selected"{{/if}}>企业老板</option>
                                <option value="3"  {{if $userItem.info.WORK.STATE=='3'}}selected="selected"{{/if}}>个体经营</option>
                                <option value="4"  {{if $userItem.info.WORK.STATE=='4'}}selected="selected"{{/if}}>其他</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>职位：</td>
                        <td>
                            <input type="text" id="WORK_JOB" name="WORK_JOB" value="{{$userItem.info.WORK.JOB}}">
                        </td>
                    </tr>
                    <tr>
                        <td>月收入：</td>
                        <td>
                            <select id="WORK_MONEY" name="WORK_MONEY">
                                <option value="0">请选择</option>
                                <option value="1" {{if $userItem.info.WORK.MONEY=='1'}}selected="selected"{{/if}}>1000元以下</option>
                                <option value="2" {{if $userItem.info.WORK.MONEY=='2'}}selected="selected"{{/if}}>1001-2000元</option>
                                <option value="3" {{if $userItem.info.WORK.MONEY=='3'}}selected="selected"{{/if}}>2001-5000元</option>
                                <option value="4" {{if $userItem.info.WORK.MONEY=='4'}}selected="selected"{{/if}}>5001-10000元</option>
                                <option value="5" {{if $userItem.info.WORK.MONEY=='5'}}selected="selected"{{/if}}>10001-20000元</option>
                                <option value="6" {{if $userItem.info.WORK.MONEY=='6'}}selected="selected"{{/if}}>20001-50000元</option>
                                <option value="7" {{if $userItem.info.WORK.MONEY=='7'}}selected="selected"{{/if}}>50000元以上</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>是否有房：</td>
                        <td>
                            <input type="radio" class="f-radio" value="2" name="HOUSE" {{if $userItem.info.ASSET.HOUSE=='2'}}checked="checked"{{/if}}> 有
                                   &nbsp;&nbsp;&nbsp;&nbsp;
                                   <input type="radio" class="f-radio" value="1" name="HOUSE" {{if $userItem.info.ASSET.HOUSE=='1'  || !$userItem.info.ASSET.HOUSE}}checked="checked"{{/if}}> 无
                        </td>
                    </tr>
                    <tr>
                        <td>有无房贷：</td>
                        <td>
                            <input type="radio" class="f-radio" value="2" name="HOUSE_DEAL" {{if $userItem.info.ASSET.HOUSE_DEAL=='2'}}checked="checked"{{/if}}> 有
                                   &nbsp;&nbsp;&nbsp;&nbsp;
                                   <input type="radio" class="f-radio" value="1" name="HOUSE_DEAL" {{if $userItem.info.ASSET.HOUSE_DEAL=='1' || !$userItem.info.ASSET.HOUSE_DEAL}}checked="checked"{{/if}}> 无
                        </td>
                    </tr>
                    <tr>
                        <td>是否有车：</td>
                        <td>
                            <input type="radio" class="f-radio" value="2" name="CAR" {{if $userItem.info.ASSET.CAR=='2'}}checked="checked"{{/if}}> 有
                                   &nbsp;&nbsp;&nbsp;&nbsp;
                                   <input type="radio" class="f-radio" value="1" name="CAR" {{if $userItem.info.ASSET.CAR=='1' || !$userItem.info.ASSET.CAR}}checked="checked"{{/if}}> 无
                        </td>
                    </tr>
                    <tr>
                        <td>有无车贷：</td>
                        <td>
                            <input type="radio" class="f-radio" value="2" name="CAR_DEAL"  {{if $userItem.info.ASSET.CAR_DEAL=='2'}}checked="checked"{{/if}}> 有
                                   &nbsp;&nbsp;&nbsp;&nbsp;
                                   <input type="radio" class="f-radio" value="1" name="CAR_DEAL"  {{if $userItem.info.ASSET.CAR_DEAL=='1' || !$userItem.info.ASSET.CAR_DEAL}}checked="checked"{{/if}}> 无
                        </td>
                    </tr>
                    <tr>
                        <td>车牌：</td>
                        <td>
                            <input type="text" id="CAR_ID" name="CAR_ID" value="{{$userItem.info.ASSET.CAR_ID}}">
                        </td>
                    </tr>
                </table>
                <div style="text-align:center; margin-top:10px">
                    <input type="submit" name="btnsubmit" id="btnsubmit" value="提交修改" class="btnbj btn_red">
                </div>	
            </form>	
        </div>
        {{else}}
        你的资料已被审核通过！等待款项投资！
        {{/if}}
        <div class="borrow_lt_bg"></div>    
    </div>

    <br class="Spacer1" />
</div>


{{include file="footer.tpl"}}
